pipeline {
  agent any
  stages {
    stage('Parallel Stages') {
      failFast true //当其中一个阶段失败，立即失败
      parallel {
        branches {
          branch('windows') {
            agent {
              label "master"
            }
            steps {
              echo "This is windows"
            }
          }
          branch('linux') {
            agent {
              label "build"
            }
            steps {
              echo "This is linux"
            }
          }
        }
      }
    }
  }
}
